<template>
  <div>
    <div>
      <h2 v-if="error.statusCode == 404">404页面不存在</h2>
      <h2 v-else>500服务器错误</h2>
      <nuxt-link to="/">返回首页</nuxt-link>
    </div>
  </div>
</template>
<script>
export default {
  props: ["error"],
  created() {}
};
</script>